package com.neusoft.zqygbc.neusoft_wenda.fragment;


import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import com.neusoft.zqygbc.neusoft_wenda.R;
import com.neusoft.zqygbc.neusoft_wenda.activity.QuestionContentActivity;

/**
 * Created by Lenovo on 2017/3/13.
 */

public class NoticeFragment extends Fragment {

    private LinearLayout notice;
        @Override
        public View onCreateView(LayoutInflater inflater, ViewGroup container,
                                 Bundle savedInstanceState)

        {
            View view = inflater.inflate(R.layout.tab04,container,false);
            ininView(view);
            initEvents();
            return view;
        }

        private void ininView(View view){
            notice = (LinearLayout)view.findViewById(R.id.notice);
        }

        private void initEvents(){
            notice.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Intent intent = new Intent(getActivity(), QuestionContentActivity.class);
                    intent.putExtra("qid", "14");
                    intent.putExtra("question_uid", "9");
                    getActivity().startActivity(intent);
                }
            });
        }


}

